package com.nytd.demo.entity;

import lombok.Data;
import java.util.List;
@Data
public class PageResult<T> {
    //总记录
    private Integer count;
    //记录详细
    private List<T> records;
    private PageRequest pageRequest;

    public PageResult(Integer count, List<T> recodes, PageRequest pageRequest) {
        this.count = count;
        this.records = recodes;
        this.pageRequest = pageRequest;
    }
}
